package user;

import book.BookList;
import operation.IOPeration;

/**
 * Created with IntelliJ IDEA.
 * User: 12629
 * Date: 2021/10/29
 * Time: 11:53
 * Description:
 */
public abstract class User {
    protected String name;

    protected IOPeration[] ioPerations;

    public User(String name) {
        this.name = name;
    }

    public abstract int menu();

    public void doIOpeartion(int choice, BookList bookList) {
        this.ioPerations[choice].work(bookList);
    }
}
